<?php
namespace app\common\validate;
use think\Validate;
class Liuyan extends Validate
{  
	protected $rule = [
      'content'   => 'require|max:255', 
      'name' => 'require|max:50',
      'tel'   => 'number|max:11',
    ];
    protected $message  =   [
    	  'name.require' => '姓名不能为空！',
        'name.max' => '姓名不能超过50个字符！',
    	  'content.require' => '内容不能为空！',
        'content.max' => '问题不能超过255个字符！',
        'tel.number' => '手机号码应为纯数字！',
        'tel.max' => '手机号码长度应为11位数字！',
    ];
}